package com.hl.sfzy.service;

import com.hl.sfzy.entity.SearchQuestion;
import com.hl.sfzy.mapper.SearchQuestionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SearchQuestionService {
    @Autowired
    private SearchQuestionMapper searchQuestionMapper;

    public  List<SearchQuestion> searchQuestions(String query) {
        return searchQuestionMapper.searchQuestions(query);
    }

}
